package com.hsd.znsh.repository;

import com.hsd.znsh.entity.Batch;
import com.hsd.znsh.entity.SensorGroup;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-04-23 11:54:50
 */
public interface SensorGroupRepository extends JpaRepository<SensorGroup ,Integer> {

    List<SensorGroup> findByIdIn(List<Integer> ids);

    SensorGroup findBySensorGroupName(String sensorGroupName);

    List<SensorGroup> findBySensorGroupType(Integer sensorGroupType);

    List<SensorGroup> findBySensorGroupTypeAndIdIn(Integer sensorGroupType,List<Integer> ids);
}
